import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 引入字体图标库
import '@/styles/toutiao-icon.css'

// 引入动态设置rem
import 'amfe-flexible'
// 全部引入vant
import Vant from 'vant'
import 'vant/lib/index.css'
// 引入公共样式
import '@/styles/index.less'
import day from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime'
import 'dayjs/locale/zh-cn'
day.locale('zh-cn')
day.extend(relativeTime)
Vue.filter('relativetime', (val) => {
  return day().to(val)
})
Vue.use(Vant)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
